package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 自定义定时任务类
 */
@Component
@Slf4j
public class TaskDemo {
public void myTask(){
    log.info("定时任务执行执行了"+ LocalDateTime.now());
}
}